package io.renren.service;

import io.renren.common.entity.XlsShopOrdersEntity;
import io.renren.common.service.CrudService;
import io.renren.dto.XlsShopOrdersDTO;
import io.renren.utils.AppResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 线上订单表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-12
 */
public interface XlsShopOrdersService extends CrudService<XlsShopOrdersEntity, XlsShopOrdersDTO> {

    AppResult addOrders(Long userId,String paramStr,Long userAddressId, Integer type);

    Map<String,Object> recoverGoodsNum(String orderunique);

    AppResult thirdPayApply(HttpServletRequest request, String orderunique, String payType, String bankCardId, String userId);

    AppResult aliPayBack(HttpServletRequest request, HttpServletResponse response);

    void wxPayBack(HttpServletRequest request, HttpServletResponse response);


    AppResult getAllOrderData(Integer pageNum, Long userId, String orderStatus);

    AppResult updateOrderStatus(XlsShopOrdersEntity shopOrders);
}